<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .docker {
            width: 800px;
            margin: 100px auto;
        }

        table {
            width: 800px;
        }

        td {
            text-align: center;
        }
    </style>
</head>

<body>

    <div class="docker">
        <div class="add">
            <a href="/stu/add">新增</a>
        </div>
        <table border="1">
            <tr>
                <th>学号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
                <th>地址</th>
                <th>操作</th>
            </tr>
            {% for s in students %}
            <tr>
                <td>{{s.sid}}</td>
                <td>{{s.name}}</td>
                <td>{{s.age}}</td>
                <td>{{s.gender}}</td>
                <td>{{s.address}}</td>
                <td>
                    <a href="/stu/change/{{s.sid}}">修改</a>
                    <a href="/stu/del/{{s.sid}}">删除</a>
                </td>
            </tr>
            {% endfor %}
        </table>
    </div>
</body>

</html>